﻿Ext.define('app.prm.detail.OperatorLog', {
    extend: 'Ext.grid.Panel',
    border: false,
    Operation: 10,
    viewConfig: {
        enableTextSelection: true //可以复制单元格文字
    },
    tools: [{
        type: 'refresh',
        itemId: "refresh",
        handler: function () {
            this.ownerCt.ownerCt.store.reload();
        } //some logic inside handler
    }],
    projectId: 0,
    initComponent: function () {
        var me = this;
        me.store = Ext.create("app.ux.PrmStore", { url: '/api/services/app/project/GetOperationLog', filter: { HostId: me.projectId, Operation: me.Operation } });
        me.callParent();
    },
    forceFit: true,
    columns: [
        { header: '时间', maxWidth: 100, dataIndex: 'creationTime' },
        { header: '操作人', maxWidth: 100, dataIndex: 'createionUser' },
        { header: localize('Operating'), dataIndex: 'note' },
        //{ header: localize('Client'), dataIndex: 'clientName' },
        //{ header: localize('ClientIP'), dataIndex: 'clientIpAddress' },
        //{ header: localize('Browser'), dataIndex: 'browserInfo' },
        //{ header: localize('Params'), dataIndex: 'parameters' }
    ]
})